home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12203 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mayne.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C++ to C conversion program for Unix machines?
  5. Date: 29 Mar 1996 10:18:47 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4jh9i7INNq2g@mayne.ugrad.cs.ubc.ca>
  8. References: <xnhg2av1lz3.fsf@vivaldi.csc.ti.com> <315b3927.235472331@usenet.interramp.com>
  9. NNTP-Posting-Host: mayne.ugrad.cs.ubc.ca
  10.  
  11. In article <315b3927.235472331@usenet.interramp.com>,
  12. Joe Peterson <tandemino@interramp.com> wrote:
  13.  >On 26 Mar 1996 17:19:28 -0600, yeshwant@vivaldi.csc.ti.com (Yeshwant
  14.  >Muthusamy) mumbled:
  15.  >
  16.  >>
  17.  >>Does anybody know of a program (running under UNIX) that takes in C++ code 
  18.  >>and spits out C? Any pointers appreciated.
  19.  >
  20.  >The only such utility I know of is AT&T's 'cfront'.  Before the days
  21.  >of native C++ compilers, 'cfront' was built to convert C++ code to be
  22.  >fed into a C compiler.
  23.  >
  24.  >Where to get a version, I don't know.  AFAIK, you have to get a
  25.  >license for it from AT&T, but maybe that's just if you're going to be
  26.  >building a version for a particular h/w-OS platform.
  27.  
  28. It's used by the HP-UX CC compiler. If you just want to do a one-time
  29. translation rather than requiring cfront on a regular basis, rent some time
  30. share on an HP box (or some other system that relies on cfront).
  31.  
  32. -- 
  33.  
  34.